wayland: Don't assert fail in DND
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 19 Nov 2013 23:55:26 +0000 (18:55 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 19 Nov 2013 23:55:26 +0000 (18:55 -0500)
This needs completion, sure thing, but let's try to just not fall
flat on our face first.

gdk/wayland/gdkdnd-wayland.c

index feb7beca9aed70fb8d3b39d2c0fd3361bca52600..34ea3cddb574909b24905cb7323665718ece9f3d 100644 (file)
@@ -176,6 +176,8 @@ _gdk_wayland_window_drag_begin (GdkWindow *window,
   GdkDragContext *context;
 
   context = (GdkDragContext *) g_object_new (GDK_TYPE_WAYLAND_DRAG_CONTEXT, NULL);
+  context->source_window = window;
+  context->is_source = TRUE;
 
   gdk_drag_context_set_device (context, device);